package model

import (
	"sgo/rewrite"
)

type User struct {
	ID         int           `json:"id" grom:"id"`
	Username   string        `json:"username" grom:"username"`
	Password   string        `json:"password" grom:"password"`
	CreateTime *rewrite.Time `json:"createTime" gorm:"create_time"`
	UpdateTime *rewrite.Time `json:"updateTime" gorm:"update_time"`
}

func (u User) TableName() string {
	return "t_user"
}
